{% load i18n %}

<ul class="nav nav-pills nav-stacked">
    <li role="presentation" {% if 'profile' in request.path %}class="active"{% endif %}>
        <a href="{% url 'politician_edit_profile' politician.unique_key %}">{% trans 'profile' %}</a>
    </li>
    <li role="presentation" {% if 'questions' in request.path %}class="active"{% endif %}>
        <a href="{% url 'politician_edit_questions' politician.unique_key %}">{% trans 'questions' %}</a>
    </li>
</ul>
